export default {
  namespaced: true,
  state: {
    language: 'zh-cn',
    pageSizes: [10, 20, 50, 100],
    toBeApprovedNum: 0
  },
  mutations: {
    SET_LANGUAGE: (state, value) => {
      state.language = value
    },
    SET_TOBAPPROVEDNUM: (state, value) => {
      state.toBeApprovedNum = value
    }
  },
  actions: {
    changeLanguage({ commit }, data) {
      commit('SET_LANGUAGE', data)
    },
    changeToBeApprovedNum({ commit }, data) {
      commit('SET_TOBAPPROVEDNUM', data)
    }
  }
}
